<template>
  <div class="CodeMirror">
    CodeMirror的使用
    <Mycode @changeTextarea="changeTextarea" />
  </div>
</template>

<script>
import Mycode from '@/components/Mycode';
export default {
  name: 'CodeMirror',
  components: {
    Mycode
  },
  setup() {
    const changeTextarea = val => {
      console.log(val);
    };
    return {
      changeTextarea
    };
  }
};
</script>
